<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<h:outputStylesheet library="css" name="styles.css"/>
	<title>#{msgs.browserTitle}</title>
</h:head>
<h:body>
	
      <h3>Welcome, #{loggedIn.employee.lastName} #{loggedIn.employee.firstName}!</h3>
      <h:form>
	     <table>
	     	
	           <tr>               
	              <td><h:commandLink value="User addministration" action = "admin" rendered="#{loggedIn.employee.superUser}"/></td>
	           </tr>
	           <tr>               
	              <td><h:commandLink value="Manage Schedule" action = "#{loggedIn.addWeek}"  rendered = "#{not loggedIn.dateListEmpty()}" /></td>
	              <td ><h:selectOneMenu value="#{loggedIn.selectedDate}" rendered = "#{not loggedIn.dateListEmpty()}" >
            			<f:selectItems value ="#{loggedIn.loadDateList()}" ></f:selectItems>
	            		</h:selectOneMenu>
	              </td>
	              
	           </tr>
	           <tr>               
	              <td><h:commandLink value="Add current week" action = "#{loggedIn.addWeek}"/></td>
	              	              	              
	           </tr>            
	           
	      </table>
	      <p><h:commandLink value="Log out" action="#{loggedIn.logout}"/></p>         
       </h:form>

</h:body>
</html>